<div xmlns:th="http://www.thymeleaf.org"
	xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
	欢迎登陆~~~ <br> <a href="/user/info/list?page=1&limit=10">用户列表</a> <a
		href="javascript:;" style="cursor: pointer;"
		th:src="@{/user/info/list}" id="ajaxA">用户列表Ajax</a> <br>
	<form method="post" action="/log_out">
		<input type="hidden" th:if="${_csrf != null}"
			th:name="${_csrf.parameterName}" th:value="${_csrf.token}" />
		<button type="submit">退出:log_out Post</button>
	</form>
	<div sec:authorize="hasRole('VVVV')">拥有角色 -> VVVV</div>
	<br>
	<div sec:authorize="hasAuthority('sys:mananger')">拥有权限 ->
		sys:mananger</div>

	<div sec:authentication="name">The value of the "name" property
		of the authentication object should appear here.</div>

	<span sec:authentication="principal.authorities"></span>
	<br>
	<span sec:authentication="principal.id"></span>
	<br>
	<span sec:authentication="principal.menuList"></span>
	<br>
	<span th:text="${#authentication.principal}"></span>
	<br> <a href="/menu">菜单页</a> <input type="hidden" name="hideId"
		th:value="${#authentication.principal.id}" />
</div>
<script type="text/javascript">
	$("#ajaxA").on("click", function() {
		utils.getUrl("/user/info/list", {
			'page' : 1,
			'limit' : 0
		}, function(res) {
			console.log(res)
		})
	})
</script>
